package com.hwj.service;

import com.github.pagehelper.PageInfo;
import com.hwj.entity.PostType;

import java.util.List;

public interface PostTypeService {
    List<PostType> select();

    int deleteByPrimaryKey(Long id);

    int insert(PostType record);

    int insertSelective(PostType record);

    PostType selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PostType record);

    int updateByPrimaryKey(PostType record);

    int updateAndInsert(PostType postType);

    PageInfo<PostType> selectByPage(Integer pageNum, Integer pageSize, String postTypeName);
}
